package com.violet.detective.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;

/**
 * 
 * @TableName Defect
 */
@TableName(value ="Defect")
@Data
public class Defect implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField("equipmentId")
    private Integer equipmentId;

    /**
     * 
     */
    @TableField("spotCheckJob")
    private String spotCheckJob;

    /**
     * 
     */
    @TableField("overhaulJob")
    private String overhaulJob;

    /**
     * 
     */
    @TableField("operateJob")
    private String operateJob;

    /**
     * 
     */
    private String phenomenon;

    /**
     * 
     */
    private Integer level;

    /**
     * 
     */
    @TableField("initiatorUserId")
    private Integer initiatorUserId;

    /**
     * 
     */
    @TableField("foundTime")
    private LocalDateTime foundTime;

    /**
     * 
     */
    @TableField("defectLink")
    private String defectLink;

    /**
     * 
     */
    private Integer annex;

    /**
     *
     */
    private String content;

    /**
     * 
     */
    @TableField("scheduledBeginTime")
    private LocalDateTime scheduledBeginTime;

    /**
     * 
     */
    @TableField("scheduledEndTime")
    private LocalDateTime scheduledEndTime;

    /**
     * 
     */
    @TableField("todoMethod")
    private String todoMethod;

    /**
     * 
     */
    @TableField("eliminationDep")
    private String eliminationDep;

    /**
     * 
     */
    @TableField("preAnalysis")
    private String preAnalysis;

    /**
     * 
     */
    private String plan;

    /**
     * 
     */
    @TableField("actualBeginTime")
    private LocalDateTime actualBeginTime;

    /**
     * 
     */
    @TableField("actualEndTime")
    private LocalDateTime actualEndTime;

    /**
     * 
     */
    @TableField("eliminationStaffUserId")
    private Integer eliminationStaffUserId;

    /**
     * 
     */
    @TableField("eliminationInfo")
    private String eliminationInfo;

    /**
     * 
     */
    @TableField("eliminationReason")
    private String eliminationReason;

    /**
     * 
     */
    @TableField("eliminationRemark")
    private String eliminationRemark;

    /**
     * 
     */
    private Object state;

    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField("equipmentName")
    private String equipmentName;

    @TableField("equipmentMajor")
    private String equipmentMajor;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}